<%@page import="com.hezuti.common.utils.DateUtil"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="com.hezuti.sns.action.SnsAction,com.hezuti.common.utils.ActionUtil,com.hezuti.sns.domain.User,com.opensymphony.xwork2.ActionContext"%>
<% 
	            SnsAction headAction = (SnsAction)ActionUtil.getAction();
                User userInfo = headAction.getUserInfo();
                String userName = userInfo.getName();
                String userId=String.valueOf(userInfo.getId());
                String headPic=userInfo.getHeadPicName();
                int sex=userInfo.getGender();
                String email=userInfo.getEmail();
                String birthday=DateUtil.format(userInfo.getBirthday(),"yyyy-MM-dd");
                String mobile=userInfo.getMobile();
                boolean hasProvEmail=userInfo.getEmail_status()==User.USER_EMAIL_PROV;
                boolean hasProvMobile=userInfo.getMobile_state()==User.USER_MOBILE_PROV;
                if(headPic==null)
                	headPic="http://sta.ganjistatic1.com/src/att/vip/normal-headphoto.png";
                
%>
<SCRIPT LANGUAGE="JavaScript">
  <!--
        var userId='<%=userInfo.getId()%>';
  //-->
  </SCRIPT>
<!--header-->
<div class="head">
    <div class="headNav">
        <span class="fr viptop">
            <a href="#" class="pub" target="_blank">免费发帖</a>
            <a href="#"><%=userInfo.getName() %></a>
            <a href="/user/logout.jspa">退出帐户</a>
        </span>
        <span class="where"><a href="/user/home.jspa">会员中心首页</a></span>
    </div>
    <h1 class="vipLogo"><a href="/" title="合租体首页"></a></h1>
</div>